pub struct ButtonAnimation {
    scale: f32,
    state: AnimationState,
    last_activity: Instant,
}

enum AnimationState {
    Idle,
    Expanding,
    Contracting,
    Paused { start_time: Instant },
}

impl ButtonAnimation {
    pub fn update(&mut self) {
        // 移动动画更新逻辑到这里
    }
}